/**
 * Copyright 2023 Huawei Technologies Co., Ltd
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef MINDSPORE_LITE_SRC_LITERT_KERNEL_CPU_FP16_CUSTOM_GRU_FP16_H_
#define MINDSPORE_LITE_SRC_LITERT_KERNEL_CPU_FP16_CUSTOM_GRU_FP16_H_
#ifdef ENABLE_ARM64
#include <vector>
#include "src/litert/kernel/cpu/fp32/custom_gru_fp32.h"

namespace mindspore::kernel {
class CustomGruFp16CPUKernel : public CustomGruCPUKernel {
 public:
  CustomGruFp16CPUKernel(OpParameter *parameter, const std::vector<lite::Tensor *> &inputs,
                         const std::vector<lite::Tensor *> &outputs, const lite::InnerContext *ctx)
      : CustomGruCPUKernel(parameter, inputs, outputs, ctx) {
    row_tile_ = C4NUM;
    col_tile_ = C8NUM;
  }
  ~CustomGruFp16CPUKernel() override = default;
  int Run() override;

 protected:
  int InitWeightAndBias() override;
};
}  // namespace mindspore::kernel
#endif
#endif  // MINDSPORE_LITE_SRC_LITERT_KERNEL_CPU_FP16_CUSTOM_GRU_FP16_H_
